var express = require('express');
var router = express.Router();
var habitDAO = require('../dao/habitDAO');

/* GET users listing. */
router.get('/', function(req, res, next) {
    habitDAO.insert(req.query, function(value){
        res.send(value);
    });
});

module.exports = router;